package org.nature.framework.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

@WebListener
public class NatureListener implements ServletContextListener {

    public void contextDestroyed(ServletContextEvent sce)  { 
    }

    public void contextInitialized(ServletContextEvent sce)  { 
    	String contextPath = sce.getServletContext().getContextPath();
    	sce.getServletContext().setAttribute("basePath", contextPath);
    }
	
}
